﻿namespace EasyWeb
{
    using System;

    [Serializable]
    public class EWTextValue
    {
        private readonly string name;
        private readonly string text;

        // for serialization support
        private EWTextValue()
        {
        }

        public EWTextValue(string name, string text)
        {
            EWGuard.IsNotNullOrEmpty(name, "name");

            this.name = name;
            this.text = text;
        }

        /// <summary>
        /// Gets the culture name.
        /// </summary>
        public string Name
        {
            get { return this.name; }
        }

        public string Text
        {
            get { return this.text; }
        }
    }
}
